import java.util.LinkedList;

public class demo {
    public static void main(String[] args) {
        Student s1 = new Student("刘德华",22);
        Student s2 = new Student("梁朝伟",24);
        Student s3 = new Student("吴彦祖",26);

        LinkedList<Student> linkedList = new LinkedList<>();
        linkedList.add(s1);
        linkedList.add(s2);
        linkedList.add(s3);
        System.out.println(linkedList);

        linkedList.removeFirst();
        System.out.println(linkedList);
    }
}